/* ALA compiler */

%{
#include <stdlib.h>
#include "y.tab.h"
%}

%%

ERROR          { return ERROR; }
NONE           { return NONE; }
EOI            { return EOI; }
TAB_INC        { return TAB_INC; }
TAB_DEC        { return TAB_DEC; }
NEW_LINE       { return NEW_LINE; }
WHITESPACE     { return WHITESPACE; }
COMMENT        { return COMMENT; }
ID             { return ID; }
VAL_INT        { return VAL_INT; }
VAL_STR        { return VAL_STR; }
IF             { return IF; }
ELIF           { return ELIF; }
ELSE           { return ELSE; }
WHILE          { return WHILE; }
FOR            { return FOR; }
IN             { return IN; }
DEF            { return DEF; }
TRUE           { return TRUE; }
FALSE          { return FALSE; }
AND            { return AND; }
OR             { return OR; }
NOT            { return NOT; }
EQUAL          { return EQUAL; }
NOT_EQUAL      { return NOT_EQUAL; }
LESS           { return LESS; }
MORE           { return MORE; }
LESS_E         { return LESS_E; }
MORE_E         { return MORE_E; }
PASS           { return PASS; }
RETURN         { return RETURN; }
PRINT          { return PRINT; }
COLON          { return COLON; }
ASSIGN         { return ASSIGN; }
PLUS           { return PLUS; }
MINUS          { return MINUS; }
MULT           { return MULT; }
DIV            { return DIV; }
BR_L           { return BR_L; }
BR_R           { return BR_R; }
BR_Q_L         { return BR_Q_L; }
BR_Q_R         { return BR_Q_R; }
COMMA          { return COMMA; }
ASSIGN_PLUS    { return ASSIGN_PLUS; }
ASSIGN_MINUS   { return ASSIGN_MINUS; }
ASSIGN_MULT    { return ASSIGN_MULT; }
ASSIGN_DIV     { return ASSIGN_DIV; }
\n             { return EOF; }
[ \t]+         /* skip tabs and spaces */
.              { yyerror(); }

%%

int main(void)
{
	yyparse();
	return 0;
}

int yywrap(void)
{
	return 0;
}

int yyerror(void)
{
	printf("False.\n");
	exit(1);
}
